const state = {
    initInfo: 'hello jackson'
}
const getters = {
    initInfo(state) {
        return state.initInfo
    }
}
const actions = {
    getInfo({commit, state},data) {
        console.log('getInfo==',data)
        commit('updateInitInfo', 'getInfo')
    }
}
const mutations = {
    updateInitInfo(state, string) {
        state.initInfo = string
        console.log('home update', string)
    }
}

export default {
    namespaced: true,
    state,
    getters,
    actions,
    mutations
}